﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace Dracham.MapEditor
{
    public static class Extensions
    {
        public static Int32 GetInt32(this XmlAttributeCollection collection, String attrName)
        {
            if (collection[attrName] != null)
            {
                return Convert.ToInt32(collection[attrName].Value);
            }

            return default(Int32);
        }
    }
}
